/**
 * Created by ptt on 2016/5/27/0027.
 */
define([], function () {
    function checkDisable(e) {
        var searchButton = this.searchButton;
        e.preventDefault();
        this.searchBox.prop("value") !== "" ?
                searchButton.removeClass("disabled").addClass("css-select") : searchButton.addClass("disabled").removeClass("css-select");
    }

    return {
        checkDisable: checkDisable
    };
    
});